//
//  PackingDesignViewCell.m
//  ForestPack
//
//  Created by 骆锴 on 2018/7/23.
//  Copyright © 2018年 郑洲. All rights reserved.
//

#import "PackingDesignViewCell.h"
@interface PackingDesignViewCell ()

@property (nonatomic, strong) UIImageView *picture;
@end

@implementation PackingDesignViewCell

+ (PackingDesignViewCell *)cellWithTableView:(UITableView *)tableView andIndexPath:(NSIndexPath *)indexPath{
    static NSString *cellID = @"PackingDesignCell";
    PackingDesignViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellID];
    if (cell == nil) {
        cell = [[PackingDesignViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellID];
        cell.backgroundColor = [UIColor whiteColor];
        cell.selectionStyle = UITableViewCellSelectionStyleNone;
        [cell createSubView];
    }
    
    return cell;
}

-(void)createSubView{
    _picture = [[UIImageView alloc] initWithFrame:CGRectMake(ScreenX375(13), ScreenX375(5), ScreenX375(349), ScreenX375(195))];
    _picture.image = [UIImage imageNamed:@"头部背景"];
    _picture.layer.cornerRadius = 3.0;
    _picture.clipsToBounds = YES;
    [self addSubview:_picture];
    
}

@end
